<?php
$this->breadcrumbs=array(
	'试卷管理'=>array('tests/'),
	$model->subjectsTestsId->tests_name=>array('Admin','testId'=>$model->subjects_tests_id),
	'大题管理',
);

$this->menu=array(
	array('label'=>'新增', 'url'=>array('create','testId'=>$model->subjects_tests_id)),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('subjects-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<h1>点击标题进行大题试题管理</h1>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'subjects-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
			'name'=>'subjects_title',
			'type'=>'raw',
			'value'=>'CHtml::link(CHtml::encode($data->subjects_title), array("/Tests/testsQuestion","tqId"=>"$data->subjects_id","testId"=>"$data->subjects_tests_id"))'
		),
		array(
			'name'=>'subjects_memo',
			'filter'=>false,
		),
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
